import http from '@/utils/http/http';
const install = function (Vue, opts = {}) {
  http.setOptions(opts);
  Vue.prototype.$tHttp = {
    get: http.get,
    getImgSrc: http.getImgSrc,
    getFileBlob: http.getFileBlob,
    postForm: http.postForm,
    postMulti: http.postMulti,
    postJson: http.postJson,
    putForm: http.putForm,
    putJson: http.putJson,
    delete: http.ajaxdelete,
    getToken: http.getToken,
    setOptions: http.setOptions,
  };
};

export default {
  install,
};
